//
//  OrderDetailVC.swift
//  Xiaozihui
//
//  Created by 校企荟 on 2017/8/24.
//  Copyright © 2017年 校企荟. All rights reserved.
//

import UIKit





class OrderDetailVC: BaseVC {

    lazy var scrollView: UIScrollView = {
        let sv = UIScrollView()
        sv.isScrollEnabled = true
        return sv
    }()
    
    lazy var orderNumLbl:UILabel = {
        let lbl = UILabel(content: "订单号:2030927349", textFont: UIFont.systemFont(ofSize: 15 * ScaleX), color: #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1), alignment: .left, numberOfLine: 1)
        return lbl
    }()
    
    lazy var companyLbl:UILabel = {
        let lbl = UILabel(content: "供应商:校企荟", textFont: UIFont.systemFont(ofSize: 15 * ScaleX), color: #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1), alignment: .left, numberOfLine: 1)
        return lbl
    }()
    
    lazy var descLbl:UILabel = {
        let lbl = UILabel(content: "报修描述:网络连接中断报修描述:网络连接中断报修描述:网络连接中断报修描述:网络连接中断报修描述:网络连接中断报修描述:网络连接中断", textFont: UIFont.systemFont(ofSize: 15 * ScaleX), color: #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1), alignment: .left, numberOfLine: 0)
        return lbl
    }()
    
    lazy var imgArray: [UIImageView] = {
        let array = [UIImageView(),UIImageView(),UIImageView()]
        return array
    }()
    
    
    
    override func setupUI() {
        title = "报修详情"
        
        view.addSubview(scrollView)
        scrollView.snp.makeConstraints { (make) in
            make.edges.equalTo(view)
        }
        let topView = UIView()
        scrollView.addSubview(topView)

        topView.snp.makeConstraints { (make) in
            make.left.right.top.equalTo(scrollView)
            make.width.equalTo(ScreenWidth)
        }
        
        topView.addSubview(orderNumLbl)
        orderNumLbl.snp.makeConstraints { (make) in
            make.left.equalTo(topView).offset(30 * ScaleX)
            make.top.equalTo(topView).offset(15 * ScaleX)
            make.right.equalTo(topView).offset(-30 * ScaleX)
        }
        
        topView.addSubview(companyLbl)
        companyLbl.snp.makeConstraints { (make) in
            make.left.right.equalTo(orderNumLbl)
            make.top.equalTo(orderNumLbl.snp.bottom).offset(16 * ScaleX)
        }
        
        
        
        
        
        
    }
    
    
}





